\hypertarget{classUI}{
\section{UI Class Reference}
\label{classUI}\index{UI@{UI}}
}
User interface class.  


{\tt \#include $<$ui.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classUI_85cb5e53a38fbf615c8dea4d90e0205d}{
\hyperlink{classUI_85cb5e53a38fbf615c8dea4d90e0205d}{UI} (void)}
\label{classUI_85cb5e53a38fbf615c8dea4d90e0205d}

\begin{CompactList}\small\item\em Default Constructor. Uses default port value (11000);. \item\end{CompactList}\item 
\hyperlink{classUI_206b47ea0a829cfeb5018675d60e5ba3}{UI} (const \hyperlink{classAddress}{Address} \&manager\_\-address)
\begin{CompactList}\small\item\em Constructor from specified manager address. Uses default port value for server (11000). \item\end{CompactList}\item 
\hyperlink{classUI_4526362c2ec21e26a904bb97557dcf06}{UI} (const \hyperlink{classAddress}{Address} \&manager\_\-address, const \hyperlink{classAddress}{Address} \&address)
\begin{CompactList}\small\item\em Constructor from specified manager address, and local server address object. \item\end{CompactList}\item 
\hyperlink{classUI_a4c9443fc5552396c858873d876a2a31}{UI} (const std::string \&manager\_\-IP, boost::uint16\_\-t manager\_\-port, boost::uint16\_\-t server\_\-port=11000)
\begin{CompactList}\small\item\em Constructor from specified manager node address and port, and local server port. \item\end{CompactList}\item 
\hypertarget{classUI_4e4180c3ad19ddf62428ea2d6b5600ab}{
\hyperlink{classUI_4e4180c3ad19ddf62428ea2d6b5600ab}{$\sim$UI} (void)}
\label{classUI_4e4180c3ad19ddf62428ea2d6b5600ab}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
const \hyperlink{classAddress}{Address} \& \hyperlink{classUI_d4eb38cd762e89c141862b3de97ec241}{getManagerAddress} () const 
\begin{CompactList}\small\item\em Gets manager address. \item\end{CompactList}\item 
void \hyperlink{classUI_608219f8eb0602ad5a1cd721596b1493}{setManagerAddress} (const \hyperlink{classAddress}{Address} \&manager\_\-address)
\begin{CompactList}\small\item\em Sets manager address using provided \hyperlink{classAddress}{Address}. \item\end{CompactList}\item 
void \hyperlink{classUI_cf912d33fa6556efda04ce9db7f5fda4}{setManagerAddress} (const std::string \&manager\_\-IP, boost::uint16\_\-t manager\_\-port)
\begin{CompactList}\small\item\em Sets manager address using provided IP and port. \item\end{CompactList}\item 
boost::uint16\_\-t \hyperlink{classUI_bb71f1f30df54dd692bbe9dc1bc40e3d}{getServerPort} () const 
\begin{CompactList}\small\item\em Gets server port. \item\end{CompactList}\item 
\hypertarget{classUI_64d84d704b69ca41d7ef9a976345a3af}{
void \hyperlink{classUI_64d84d704b69ca41d7ef9a976345a3af}{setServerPort} (boost::uint16\_\-t server\_\-port)}
\label{classUI_64d84d704b69ca41d7ef9a976345a3af}

\begin{CompactList}\small\item\em Sets server port to the provided one.  server\_\-port The provided port. \item\end{CompactList}\item 
\hypertarget{classUI_cef2003d56c6cf1919edf27c95f2478c}{
void \hyperlink{classUI_cef2003d56c6cf1919edf27c95f2478c}{run} (void)}
\label{classUI_cef2003d56c6cf1919edf27c95f2478c}

\begin{CompactList}\small\item\em \hyperlink{classUI}{UI} behaviour in the application. \item\end{CompactList}\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \textbf{\_\-ft\_\-req}
\end{CompactItemize}


\subsection{Detailed Description}
User interface class. 

Through \hyperlink{classWFQProxyFactory}{WFQProxyFactory} obtains a \hyperlink{classWFQueueManagerProxy}{WFQueueManagerProxy} in order to communicate with \hyperlink{classWFQueueManager}{WFQueueManager} via UDP sockets. UI-Manager communication consists in enqueue() calls to add new Workflow(s) to \hyperlink{classManager}{Manager} queue.

In addition, after a \hyperlink{classTaskDescriptor}{TaskDescriptor} has been delivered to a Worker, the \hyperlink{classUI}{UI} listens for UDP file transfer requests advanced by them in order to provide the file specified in TaskDescriptor::\_\-link member. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classUI_206b47ea0a829cfeb5018675d60e5ba3}{
\index{UI@{UI}!UI@{UI}}
\index{UI@{UI}!UI@{UI}}
\subsubsection[UI]{\setlength{\rightskip}{0pt plus 5cm}UI::UI (const {\bf Address} \& {\em manager\_\-address})}}
\label{classUI_206b47ea0a829cfeb5018675d60e5ba3}


Constructor from specified manager address. Uses default port value for server (11000). 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em manager\_\-address}]\hyperlink{classManager}{Manager} address. \end{description}
\end{Desc}
\hypertarget{classUI_4526362c2ec21e26a904bb97557dcf06}{
\index{UI@{UI}!UI@{UI}}
\index{UI@{UI}!UI@{UI}}
\subsubsection[UI]{\setlength{\rightskip}{0pt plus 5cm}UI::UI (const {\bf Address} \& {\em manager\_\-address}, \/  const {\bf Address} \& {\em address})}}
\label{classUI_4526362c2ec21e26a904bb97557dcf06}


Constructor from specified manager address, and local server address object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em manager\_\-address}]\hyperlink{classManager}{Manager} \hyperlink{classAddress}{Address}. \item[{\em address}]Local server address.\end{description}
\end{Desc}
\begin{Desc}
\item[Note:]It completely ignores IP data of server\_\-address, only port is needed. \end{Desc}
\hypertarget{classUI_a4c9443fc5552396c858873d876a2a31}{
\index{UI@{UI}!UI@{UI}}
\index{UI@{UI}!UI@{UI}}
\subsubsection[UI]{\setlength{\rightskip}{0pt plus 5cm}UI::UI (const std::string \& {\em manager\_\-IP}, \/  boost::uint16\_\-t {\em manager\_\-port}, \/  boost::uint16\_\-t {\em server\_\-port} = {\tt 11000})}}
\label{classUI_a4c9443fc5552396c858873d876a2a31}


Constructor from specified manager node address and port, and local server port. 

Default port value is 11000. 

\subsection{Member Function Documentation}
\hypertarget{classUI_d4eb38cd762e89c141862b3de97ec241}{
\index{UI@{UI}!getManagerAddress@{getManagerAddress}}
\index{getManagerAddress@{getManagerAddress}!UI@{UI}}
\subsubsection[getManagerAddress]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Address} \& UI::getManagerAddress () const}}
\label{classUI_d4eb38cd762e89c141862b3de97ec241}


Gets manager address. 

\begin{Desc}
\item[Returns:]Manager's address. \end{Desc}
\hypertarget{classUI_608219f8eb0602ad5a1cd721596b1493}{
\index{UI@{UI}!setManagerAddress@{setManagerAddress}}
\index{setManagerAddress@{setManagerAddress}!UI@{UI}}
\subsubsection[setManagerAddress]{\setlength{\rightskip}{0pt plus 5cm}void UI::setManagerAddress (const {\bf Address} \& {\em manager\_\-address})}}
\label{classUI_608219f8eb0602ad5a1cd721596b1493}


Sets manager address using provided \hyperlink{classAddress}{Address}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em manager\_\-address}]The provided \hyperlink{classAddress}{Address}. \end{description}
\end{Desc}
\hypertarget{classUI_cf912d33fa6556efda04ce9db7f5fda4}{
\index{UI@{UI}!setManagerAddress@{setManagerAddress}}
\index{setManagerAddress@{setManagerAddress}!UI@{UI}}
\subsubsection[setManagerAddress]{\setlength{\rightskip}{0pt plus 5cm}void UI::setManagerAddress (const std::string \& {\em manager\_\-IP}, \/  boost::uint16\_\-t {\em manager\_\-port})}}
\label{classUI_cf912d33fa6556efda04ce9db7f5fda4}


Sets manager address using provided IP and port. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em manager\_\-IP}]The provided manager IP address. \item[{\em manager\_\-port}]The provided manager port. \end{description}
\end{Desc}
\hypertarget{classUI_bb71f1f30df54dd692bbe9dc1bc40e3d}{
\index{UI@{UI}!getServerPort@{getServerPort}}
\index{getServerPort@{getServerPort}!UI@{UI}}
\subsubsection[getServerPort]{\setlength{\rightskip}{0pt plus 5cm}boost::uint16\_\-t UI::getServerPort () const}}
\label{classUI_bb71f1f30df54dd692bbe9dc1bc40e3d}


Gets server port. 

\begin{Desc}
\item[Returns:]Server port. \end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{ui_8h}{ui.h}\item 
\hyperlink{ui_8cpp}{ui.cpp}\end{CompactItemize}
